package com.zc.auth.security.core.filter;

import org.springframework.security.authorization.ReactiveAuthorizationManager;
import org.springframework.security.web.server.authorization.AuthorizationWebFilter;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebFilterChain;
import reactor.core.publisher.Mono;

public class WebFluxAuthorizationFilter extends AuthorizationWebFilter {

    public WebFluxAuthorizationFilter(ReactiveAuthorizationManager<? super ServerWebExchange> accessDecisionManager) {
        super(accessDecisionManager);
    }

    @Override
    public Mono<Void> filter(ServerWebExchange serverWebExchange, WebFilterChain webFilterChain) {
        return super.filter(serverWebExchange, webFilterChain);
    }
}
